$(document).ready(function(){
//提交数据
    $("#submitbtn").click( function () {
        var status=$("#status").val();
        var name=$("#name").val();
        var postition=$("#postition").val();

        var experience=$("#experience").html();
        var salary=$("#salary").val();
        var href="";
            // $("#href").val();
        var adress=$("#adress").val();
        var sex=$("#sex").val();
        var qq=$("#qq").val();
        var wx=$("#wx").val();
        var email=$("#email").val();
        var phonenum=$("#phonenum").val();
        var skill=$("#skill").val();
        var production=$("#production").html();
        var impression=$("#impression").val();
        var image="";
            // $("#image").val();
        var introduction=$("#introduction").html();
//提交的json对象
        var audit={
            "status":status,
            "name":name,
            "image":image,
            "postition":postition,
            "experience":experience,
            "salary":salary,
            "href":href,
            "adress":adress,
            "sex":sex,
            "qq":qq,
            "wx":wx,
            "email":email,
            "phonenum":phonenum,
            "skill":skill,
            "impression":impression,
            "production":production,
            "introduction":introduction
        }
        //ajax提交json格式对象
        $.ajax({
            type:"POST",
            url:"/hire/hr/addmsg",
            contentType: "application/json", //必须这样写
            dataType:"json",
            data:JSON.stringify(audit),//audit是你要提交是json字符串
            success:function (data) {
alert("提交成功");
                window.location.href = '/hire/index.html';
            }
        })
    });
});
